<%--
功能：用于显示客户全名
 --%>
<%@ tag import="com.probiz.estore.common.model.customer.Customer"%>
<%@ attribute name="userId" %>
<%@ attribute name="noFormat" required="false" rtexprvalue="false" type="java.lang.String" description="any value will disable using formating"%>
<%
String userName = com.probiz.estore.Constants.ANONYMOUS_USER_NAME;
if (userId!=null&&!userId.equals("")) {
	//输出用户名链接
	org.springframework.context.ApplicationContext ctx = org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(application);
	com.probiz.estore.customer.service.CustomerManager userMgr = (com.probiz.estore.customer.service.CustomerManager)ctx.getBean("customerManager");
	String ctxPath = (String)application.getAttribute("ctxPath");

	Customer user = null;
	try {
		user = userMgr.getById(Integer.valueOf(userId));
	} catch (java.lang.Throwable e) {
		System.err.println("error looking up user with id: "+userId);
	}
	if (user!=null) {
		userName=user.getFullName();
	}
}
out.write(userName);
%>
